package console

import (
	"fmt"
	"go_ai/pkg/model"
)

func Content(ch <-chan model.Response) {
	for chunk := range ch {
		if chunk.ReasoningContent != "" {
			fmt.Printf(chunk.ReasoningContent)
			continue
		}
		// 打印回答
		fmt.Printf(chunk.Content)
	}
}
